package com.why.cachecloud.dao;

import com.why.cachecloud.service.task.entity.InstanceBigKey;
import com.why.cachecloud.web.util.Page;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

public interface InstanceBigKeyDao {

	/**
	 * 批量保存bigkey
	 * @param instanceBigKeyList
	 * @return
	 */
    int batchSave(@Param("instanceBigKeyList") List<InstanceBigKey> instanceBigKeyList);

    /**
     * @param appId
     * @param auditId
     * @return
     */
    int getAppBigKeyCount(@Param("appId") long appId, @Param("auditId") long auditId);

    /**
     * @param appId
     * @param auditId
     * @param page
     * @return
     */
	List<InstanceBigKey> getAppBigKeyList(@Param("appId") long appId, @Param("auditId") long auditId,
            @Param("page") Page page);

	Integer getAppBigKeyList2Total(@Param("appId") long appId,
												@Param("auditId") long auditId,
												@Param("startDate") LocalDateTime startDate,
												@Param("endDate") LocalDateTime endDate,
												@Param("page") Page page);
	List<InstanceBigKey> getAppBigKeyList2(@Param("appId") long appId,
										   @Param("auditId") long auditId,
										   @Param("startDate") LocalDateTime startDate,
										   @Param("endDate") LocalDateTime endDate,
										   @Param("page") Page page);
    
    
}
